<template>
  <div>
    <el-card style="margin-bottom:20px;height: 250px">

    <div slot="header" class="clearfix">
        <span>订单信息</span>
      </div>
      <div class="order-bio">
        <div class="order-skills order-bio-section">
          <div class="order-bio-section-body">
            <div class="progress-item">
              <b>订单状态</b>
              <span>{{statusShow[order.status]}}</span>
            </div>
            <div class="progress-item">
              <b>订单编号</b>
              <span>{{order.order_no}}</span>
            </div>
            <div class="progress-item">
              <b>交易单号</b>
              <span>{{order.pay_no}}</span>
            </div>
            <div class="progress-item">
              <b>订单类型</b>
              <span>{{order.goods_type==1?'单品':'拼团'}}</span>
            </div>
            <div class="progress-item">
              <b>新人专享</b>
              <span>{{order.is_new==1?'是':'否'}}</span>
            </div>
          </div>
        </div>
      </div>
    </el-card>
  </div>

</template>

<script>
  const statusShow = {
    0:'待付款', 1:'未开始', 2:'进行中' ,3:'已完成' ,4:'已关闭'
  }
  export default {

    props: {
      order: {
        type: Object,
        default: () => {
          return {
          }
        }
      },

    },

    data() {
      return {
        statusShow
      }
    },
    created() {
    },
    methods: {
    }
  }
</script>
<style>
  .el-button span:not:first-child {
    font-size: 12px
  }
</style>
<style lang="scss" scoped>

  .box-center {
    margin: 0 auto;
    display: table;
  }

  .card-panel-text {
    line-height: 18px;
    color: rgba(0, 0, 0, 0.45);
    font-size: 16px;
    margin-bottom: 12px;
  }

  .text-muted {
    color: #777;
  }

  .progress-item {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .order-profile {
    .order-name {
      font-weight: bold;
    }

    .box-center {
      padding-top: 10px;
    }

    .order-role {
      padding-top: 10px;
      font-weight: 400;
      font-size: 14px;
    }

    .box-social {
      padding-top: 30px;

      .el-table {
        border-top: 1px solid #dfe6ec;
      }
    }

    .order-follow {
      padding-top: 20px;
    }
  }

  .order-bio {
    color: #606266;

    span {
      padding-left: 4px;
    }

    .order-bio-section {
      font-size: 16px;
      padding: 15px 0;

      .order-bio-section-header {
        border-bottom: 1px solid #dfe6ec;
        padding-bottom: 10px;
        margin-bottom: 10px;
        font-weight: bold;
      }
    }
  }
</style>
